package cn.iocoder.yudao.module.jifenyuan.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@Getter
@AllArgsConstructor
public enum JifenyuanRoomEventTypeEnum implements IntArrayValuable {

    SCORE_CHANGE(1, "积分变化"),
    MEMBER_CHANGE(2, "成员变化"),
    COIN_CHANGE(3, "金币变更通知"),
    MUST_LEAVE_ROOM(4, "强制退出房间"),
    ROOM_CLOSE(5, "房间已解散");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(JifenyuanRoomEventTypeEnum::getStatus).toArray();

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}

